package wuuxiang.crm;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

public class HydxyxElement {
	public WebDriver driver;

	// 驱动
	public HydxyxElement(WebDriver driver) {
		this.driver = driver;
		PageFactory.initElements(driver, this);

	}

	// 定位元素

	@FindBy(xpath = "//*[@id='container']/div[6]/ul/li[4]/a")
	private WebElement hydx;

	@FindBy(id = "mobile")
	private WebElement mobile;

	@FindBy(id = "doQuery")
	private WebElement chaxun;

	@FindBy(xpath = "//*[@id='doSendMsg']")
	private WebElement gouxuan;

	@FindBy(xpath = " //*[@id='sendkinds3']")
	private WebElement gxdzq;

	@FindBy(id = "ticketKindId")
	private WebElement cqlx;

	public void hydx() {
		hydx.click();
	}

	public void phone(String a) {
		mobile.clear();
		mobile.sendKeys(a);
		chaxun.click();

	}

	public void chose() {
		gxdzq.click();

	}

}
